Prizm Content Connect
How to Upgrade HTML5 Viewer Annotation Handling to PCC v8.4

With PCC v8.4, we have improved the way that annotations are selected and saved in the user interface. This improvement necessitates a minor code change for PCC v8.4 that you need to be aware of in order to use the annotation interface.

Web Tier Requirements

In order to be able to load annotations, the web tier must provide the following:

REQUEST: Handle an HTTP GET request to a URL formatted like this:

/AnnotationList/q/Art/q?DocumentID=uq_yR2zTAFKSnzpRdOM1DdV4AIzsRtFCcNttfzaaYrN6MS7PBUcRGBHRmsLiK0dER-xnrNlEpuhXIivvJTPw9MA

RESPONSE: Return a JSON object or JSON string containing a list of annotations associated with the DocumentID parameter from the request. The JSON must be formatted like this:

Example
Copy Code
{
   "annotationFiles":[
      {
         "annotationLabel":"Draft 1",
         "annotationName":"f5a0a88ba3eb1cb88c40d1e1b6b7f2ca333708f5_0_uDraft 1.xml",
         "ID":"1"
      },
      {
         "annotationLabel":"Draft 2",
         "annotationName":"f5a0a88ba3eb1cb88c40d1e1b6b7f2ca333708f5_0_uDraft 2.xml",
         "ID":"2"
      },
      {
         "annotationLabel":"Redactions 1",
         "annotationName":"f5a0a88ba3eb1cb88c40d1e1b6b7f2ca333708f5_0_uRedactions 1.xml",
         "ID":"3"
      }
   ]
}

Changes to Samples

A new class was added in all the samples (except PHP) to generate AnnotationList and return JSON string. For PHP, a new function was added in the pcc.php to generate Annotation List.

PCCIS Samples

C#

JSP

PHP

Legacy Samples

C#

VB.Net

MVC

JSP

PHP

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback